package cn.sany.cterminal.dao;

import cn.sany.cterminal.entity.VehicleInfo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface VehicleInfoDao {
    int deleteByPrimaryKey(Integer id);

    int insert(VehicleInfo record);

    int insertSelective(VehicleInfo record);

    VehicleInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(VehicleInfo record);

    int updateByPrimaryKey(VehicleInfo record);

    /**
     *
     * @Method : selectEnableVehicle
     * @Description : 查询所有启用车辆
     * @return : List<VehicleInfo>
     * @author : zhouxing
     * @CreateDate : 2020-09-14 11:06:13
     *
     */
    List<VehicleInfo> selectVehicleByEnableState(Integer enableState);

    VehicleInfo selectByVinNum(String vinNumber);
}